<?php

namespace App\Http\Controllers\DesignPattern\Creational\Behavioral;

use App\Model\DesignPattern\Creational\Behavioral\Command\Bulb;
use App\Model\DesignPattern\Creational\Behavioral\Command\Off;
use App\Model\DesignPattern\Creational\Behavioral\Command\RemoteControl;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class CommandController extends Controller
{
    public function index()
    {
        $remote = new RemoteControl();
        return $remote->submit(new Off(new Bulb()));

        $res = new Off(new Bulb());
        return $res->redo();
    }
}
